home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Object = "{B3ECB8C8-B046-11D2-B522-D0863DEC394B}#2.0#0"; "MagicFrm.ocx"
- Begin VB.Form FRMMagic
- Caption = "Exemplo do FulDrag e OnTop"
- ClientHeight = 2190
- ClientLeft = 60
- ClientTop = 345
- ClientWidth = 4290
- LinkTopic = "Form1"
- ScaleHeight = 2190
- ScaleWidth = 4290
- StartUpPosition = 3 'Windows Default
- Begin MagicForms.FullDrag FullDrag1
- Left = 1620
- Top = 660
- _ExtentX = 2223
- _ExtentY = 847
- End
- Begin MagicForms.OnTop OnTop1
- Left = 300
- Top = 660
- _ExtentX = 2223
- _ExtentY = 847
- End
- Begin VB.TextBox TXTDrag
- Height = 495
- Index = 1
- Left = 2220
- MultiLine = -1 'True
- TabIndex = 4
- Text = "FRMMagic.frx":0000
- Top = 1680
- Width = 1995
- End
- Begin VB.TextBox TXTDrag
- Height = 495
- Index = 0
- Left = 2220
- MultiLine = -1 'True
- TabIndex = 3
- Text = "FRMMagic.frx":002E
- Top = 1140
- Width = 1995
- End
- Begin VB.CheckBox CHKOnTop
- Caption = "Formul
- rio sempre vis
- vel / Always on Top Form"
- Height = 495
- Left = 120
- TabIndex = 0
- Top = 60
- Width = 3855
- End
- Begin VB.Label LBLDrag
- Alignment = 2 'Center
- BorderStyle = 1 'Fixed Single
- Caption = "Click and Drag Here to move the Form."
- Height = 435
- Index = 1
- Left = 120
- TabIndex = 2
- Top = 1620
- Width = 2055
- End
- Begin VB.Label LBLDrag
- Alignment = 2 'Center
- BorderStyle = 1 'Fixed Single
- Caption = "Clique e arraste aqui para mover o formul
- rio."
- Height = 435
- Index = 0
- Left = 120
- TabIndex = 1
- Top = 1140
- Width = 2055
- End
- Attribute VB_Name = "FRMMagic"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Private Sub CHKOnTop_Click()
- If CHKOnTop.Value = 1 Then
- OnTop1.Enabled = True
- OnTop1.Enabled = False
- End If
- End Sub
- Private Sub LBLDrag_MouseDown(Index As Integer, Button As Integer, Shift As Integer, X As Single, Y As Single)
- If Button = 1 Then FullDrag1.ArrasteTotal Me
- End Sub
- Private Sub TXTDrag_MouseDown(Index As Integer, Button As Integer, Shift As Integer, X As Single, Y As Single)
- If Button = 1 Then FullDrag1.ArrasteTotal TXTDrag(Index)
- End Sub
-